package contest;

import java.io.InputStreamReader;
import java.util.Scanner;

public class YanagisComic {
	public static void main(String args[]){
		Scanner sc = new Scanner(new InputStreamReader(System.in));
		while(true){
			int value = sc.nextInt();
			if(value==0)break;
			int[] x0 = new int[value];
			int[] y0 = new int[value];
			int[] x1 = new int[value];
			int[] y1 = new int[value];
			for(int i=0;i<value;i++){
				x0[i] = sc.nextInt();
				y0[i] = sc.nextInt();
				x1[i] = sc.nextInt();
				y1[i] = sc.nextInt();
			}
			
		}
	}
}
